/**
 * Created by luckyjing on 16/2/4.
 */
var path = require('path');
exports.render = function (req, res) {
    if(req.isAuthenticated()){
        res.sendfile(path.join(__dirname, '../views/index.html'));
    }else{
        res.redirect('/');
    }
};

exports.upload = function (req, res) {
    res.json({
        result: 'success'
    });
};